import type { App, Directive } from 'vue'

export * from './auth'
export * from './copy'
export * from './longpress'
export * from './optimize'
export * from './ripple'
export * from '@wlydfe/pro-ui/directives'
// 自定义指令
import * as AllDirective from '@/directives'

export default function directives(app: App) {
  Object.keys(AllDirective).forEach(key => {
    app.directive(key, (AllDirective as { [key: string]: Directive })[key])
  })
}
